package stephen.competition13;

public class Commodity {
	
	//商品属性：商品id、名字、价格、数量
	private int commodityId;
	private String name;
	private double price;
	private int number;
	
	public int getCommodityId() {
		return commodityId;
	}

	public void setCommodityId(int commodityId) {
		this.commodityId = commodityId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}
 
	Commodity(int commodityId){
		this.commodityId=commodityId;
	}
	
	
//	Commodity(String name,double price,int number){		
//		this.name=name;
//		this.price=price;
//		this.number=number;
//	}

}
